package org.example.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:interceptorcontroller
 * @Date:2025/7/31 9:41
 */
@Slf4j
@RestController
@RequestMapping("/first")
public class interceptorcontroller {

    @GetMapping("/a")
    public void a() {
        log.info("调用了first的a的方法");
    }

    @GetMapping("/b")
    public void b() {
        log.info("调用了first的b的方法");
    }
}
